package com.longdaji.decoration.ui.assistant;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

import com.longdaji.decoration.R;
import com.longdaji.decoration.base.BaseActivity;
import com.longdaji.decoration.ui.process.ApplyProcessActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by longtao on 2017/12/19.
 */

public class AssistantActivity extends BaseActivity implements AssistantContract.View {

    private static final String TAG = AssistantActivity.class.getSimpleName();
    @BindView(R.id.tv_title)
    TextView mTvTitle;


    public static Intent getStartIntent(Context context) {
        Intent intent = new Intent(context, AssistantActivity.class);
        return intent;
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.d(TAG, "AssistantActivity onCreate");
        setContentView(R.layout.activity_apply_assistant);
        setUnBinder(ButterKnife.bind(this));
        initView();
    }

    private void initView() {
        mTvTitle.setText("申请楼长");
    }


    @OnClick({R.id.iv_back, R.id.btn_apply_assistant})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_back:
                finish();
                break;
            case R.id.btn_apply_assistant:
                startActivity(ApplyProcessActivity.getStartIntent(this));
                break;
            default:
                break;
        }
    }
}
